package storage.log;

import storage.file.Page;

public class BasicLogRecord {

	private Page page;
	private int pos;
	
	public BasicLogRecord(Page page, int pos) {
		this.page = page;
		this.pos = pos;
	}
	
	public int nextInt() {
		int f = page.getInt(pos);
		pos += 4;
		return f;
	}
	
	public String nextString() {
		String s = page.getString(pos);
		pos += Page.STR_SIZE(s.length());
		return s;
	}
}
